<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('Posts Galleries');

echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="br" lang="pt">
<head>
    <?php echo $this->headMeta(); ?>
    <?php echo $this->headTitle(); ?>
    <?php echo $this->headLink()->appendStylesheet($this->baseUrl().'/css/site.css'); ?>

<?php
if ($this->custom_head) {
	echo $this->custom_head;
}
?>

</head>
<body<?php if ($this->custom_body) {
	echo $this->custom_body;
}?>>


<p>
	<a href="<?php echo $this->baseUrl().'/index';?>">home</a> |
	<a href="<?php echo $this->url(array('controller'=>'admin','action'=>'add'));?>">Add</a> |
	<a href="<?php echo $this->url(array('controller'=>'admin','action'=>'index'));?>">Edit</a> |
	<a href="<?php echo $this->url(array('controller'=>'auth','action'=>'login'));?>">login</a>
</p>

========================================================================
<table width="100%"><tr><td>

<div id="content">
    <h1><?php echo $this->escape($this->title); ?></h1>
    <?php echo $this->layout()->content; ?>
</div>

</table></tr></td>
========================================================================<br>
<a href="<?php echo $this->url(array('controller'=>'auth','action'=>'logout'));?>">logout</a>
</body>
</html>
